package com.myGisChannel.controller;
 
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.multiaction.MultiActionController;
 
public class LoginController extends MultiActionController{
	
	public ModelAndView loguin(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		return new ModelAndView("/loguin");
	 
	}
	
	public ModelAndView loginfailed(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		request.setAttribute("error", "Error al intentar acceder el sistema");
		return new ModelAndView("/loguin");
		
	}
	
}